Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / Styles Class / CreateGradientFill Method / CreateGradientFill(Double,Double,Double,Double,GradientStop[]) Method
Specifies in percentage format (from the top to the bottom) the position of the top edge of the inner rectangle (color 1). For top, 0 means the top edge of the inner rectangle is on the top edge of the cell, and 1 means it is on the bottom edge of the cell.
Specifies in percentage format (from the left to the right) the position of the left edge of the inner rectangle (color 1). For left, 0 means the left edge of the inner rectangle is on the left edge of the cell, and 1 means it is on the right edge of the cell.
Specifies in percentage format (from the top to the bottom) the position of the bottom edge of the inner rectangle (color 1). For bottom, 0 means the bottom edge of the inner rectangle is on the top edge of the cell, and 1 means it is on the bottom edge of the cell.
Specifies in percentage format (from the left to the right) the position of the right edge of the inner rectangle (color 1). For right, 0 means the right edge of the inner rectangle is on the left edge of the cell, and 1 means it is on the right edge of the cell.
A GradientStop array indicates the gradient stops.


In This Topic
    CreateGradientFill(Double,Double,Double,Double,GradientStop[]) Method
    In This Topic
    Creates the path gradient fill.
    Syntax
    'Declaration
     
    
    Public Overloads Function CreateGradientFill( _
       ByVal top As Double, _
       ByVal left As Double, _
       ByVal bottom As Double, _
       ByVal right As Double, _
       ByVal gradientStops() As GradientStop _
    ) As Fill
    'Usage
     
    
    Dim instance As Styles
    Dim top As Double
    Dim left As Double
    Dim bottom As Double
    Dim right As Double
    Dim gradientStops() As GradientStop
    Dim value As Fill
     
    value = instance.CreateGradientFill(top, left, bottom, right, gradientStops)

    Parameters

    top
    Specifies in percentage format (from the top to the bottom) the position of the top edge of the inner rectangle (color 1). For top, 0 means the top edge of the inner rectangle is on the top edge of the cell, and 1 means it is on the bottom edge of the cell.
    left
    Specifies in percentage format (from the left to the right) the position of the left edge of the inner rectangle (color 1). For left, 0 means the left edge of the inner rectangle is on the left edge of the cell, and 1 means it is on the right edge of the cell.
    bottom
    Specifies in percentage format (from the top to the bottom) the position of the bottom edge of the inner rectangle (color 1). For bottom, 0 means the bottom edge of the inner rectangle is on the top edge of the cell, and 1 means it is on the bottom edge of the cell.
    right
    Specifies in percentage format (from the left to the right) the position of the right edge of the inner rectangle (color 1). For right, 0 means the right edge of the inner rectangle is on the left edge of the cell, and 1 means it is on the right edge of the cell.
    gradientStops
    A GradientStop array indicates the gradient stops.

    Return Value

    A Fill value represents the created gradient fill.
    See Also